# -*- coding: utf-8 -*-
"""
@Time ： 2023/9/17 11:32
@Auth ： y.h
@File ：my_exception.py
@IDE ：PyCharm
@Motto：The sooner you start to code, the longer the program will take. —— Roy Carlson
"""
import traceback


class keyword_exception(Exception):
    def __init__(self, entity_name):
        Exception.__init__(self)
        self.message = f"当前传入的参数 \"{entity_name}\" 为python关键字,请修改!"
        traceback.print_exception(self)
